<template>
  <div>
    pageB number:{{$store.state.b.number}}
    <button @click="add(2)">每次加2</button>
  </div>
</template>
<script>
  import {mapActions} from 'vuex'
  export default {
    methods:mapActions('b',['add','reduce'])
  }
</script>
